
var option = {
    tooltip: {
        trigger: 'item',
        formatter: '{a} <br/>{b}: {c} ({d}%)'
    },
   
    series: [
        {
            name: '安全检查类别',
            type: 'pie',
            radius: ['50%', '80%'],
            // center:['50%','50%'],
            avoidLabelOverlap: false,
            label: {
                show: false,
                position: 'center'
            },
            emphasis: {
                label: {
                    show: true,
                    fontSize: '14',
                    fontWeight: 'bold'
                }
            },
            labelLine: {
                show: false
            },
            data: [
                {value: 234, name: '日常检查',itemStyle:{color:'#5181ff'}},
                {value: 234, name: '周检查',itemStyle:{color:'#958bff'}},
                {value: 234, name: '月度检查',itemStyle:{color:'#ff688d'}},
                {value: 234, name: '季度检查',itemStyle:{color:'#ff9c00'}},
                {value: 234, name: '年度检查',itemStyle:{color:'#fed100'}},
                {value: 234, name: '专项检查',itemStyle:{color:'#00dace'}},
                {value: 234, name: '其他检查',itemStyle:{color:'#51b3ff'}}
            ]
        }
    ]
};
var chart = echarts.init(document.querySelector('.safeCheckType'));
chart.setOption(option);